<template>
<div>
  <h1>哈哈哈</h1>
  <p>标题<input type="text" v-model="form.title"></p>
  <button @click="add">提交</button>
</div>
</template>

<script>
export default {
  name: "news",
  data(){
    return{
      form:{}
    }
  },
  methods:{
    add(){
      this.$axios.post('http://127.0.0.1:5000/',this.form)
      .then(i=>{})
    }
  },
  mounted() {
  }
}
</script>

<style scoped>

</style>
